const routes = [
  {
    path: '*',
    redirect: '/home'
  },
  {
    name: 'home',
    path: '/home',
    redirect: '/home/map_install',
    component: () => import(/* webpackChunkName: 'home' */ 'components/home/home'),
    children: [
      {
        name: 'home_map_install',
        path: '/home/map_install',
        meta: { needOpen: 'home_map', activeName: 'home_map_install' },
        component: () => import(/* webpackChunkName: 'home_map_install' */ 'components/map/install')
      },
      {
        name: 'home_map_layers',
        path: '/home/map_layers',
        meta: { needOpen: 'home_map', activeName: 'home_map_layers' },
        component: () => import(/* webpackChunkName: 'home_map_layers' */ 'components/map/layers')
      },
      {
        name: 'home_map_initMap',
        path: '/home/map_initMap',
        meta: { needOpen: 'home_map', activeName: 'home_map_initMap' },
        component: () => import(/* webpackChunkName: 'home_map_initMap' */ 'components/map/initMap')
      },
      {
        name: 'home_map_componentMap',
        path: '/home/map_componentMap',
        meta: { needOpen: 'home_map', activeName: 'home_map_componentMap' },
        component: () => import(/* webpackChunkName: 'home_map_componentMap' */ 'components/map/componentMap')
      },
      {
        name: 'home_map_layerMap',
        path: '/home/map_layerMap',
        redirect: '/home/map_layerMap/arcgis',
        component: () => import(/* webpackChunkName: 'home_map_layerMap' */ 'components/map/layerMap'),
        children: [
          {
            name: 'home_map_layerMap_arcgis',
            path: '/home/map_layerMap/arcgis',
            meta: { needOpen: 'home_map', activeName: 'home_map_layerMap' },
            component: () => import(/* webpackChunkName: 'home_map_layerMap_arcgis' */ 'components/map/layerMapChild/arcgis')
          },
          {
            name: 'home_map_layerMap_weatherWarning',
            path: '/home/map_layerMap/weatherWarning',
            meta: { needOpen: 'home_map', activeName: 'home_map_layerMap' },
            component: () => import(/* webpackChunkName: 'home_map_layerMap_weatherWarning' */ 'components/map/layerMapChild/weatherWarning')
          },
          {
            name: 'home_map_layerMap_typhoon',
            path: '/home/map_layerMap/typhoon',
            meta: { needOpen: 'home_map', activeName: 'home_map_layerMap' },
            component: () => import(/* webpackChunkName: 'home_map_layerMap_typhoon' */ 'components/map/layerMapChild/typhoon')
          },
          {
            name: 'home_map_layerMap_cloudRadar',
            path: '/home/map_layerMap/cloudRadar',
            meta: { needOpen: 'home_map', activeName: 'home_map_layerMap' },
            component: () => import(/* webpackChunkName: 'home_map_layerMap_cloudRadar' */ 'components/map/layerMapChild/cloudRadar')
          },
          {
            name: 'home_map_layerMap_banksCriticals',
            path: '/home/map_layerMap/banksCriticals',
            meta: { needOpen: 'home_map', activeName: 'home_map_layerMap' },
            component: () => import(/* webpackChunkName: 'home_map_layerMap_banksCriticals' */ 'components/map/layerMapChild/banksCriticals')
          },
          {
            name: 'home_map_layerMap_arcgisIcon',
            path: '/home/map_layerMap/arcgisIcon',
            meta: { needOpen: 'home_map', activeName: 'home_map_layerMap' },
            component: () => import(/* webpackChunkName: 'home_map_layerMap_arcgisIcon' */ 'components/map/layerMapChild/arcgisIcon')
          },
          {
            name: 'home_map_layerMap_other',
            path: '/home/map_layerMap/other',
            meta: { needOpen: 'home_map', activeName: 'home_map_layerMap' },
            component: () => import(/* webpackChunkName: 'home_map_layerMap_other' */ 'components/map/layerMapChild/other')
          },
          {
            name: 'home_map_layerMap_drawUtil',
            path: '/home/map_layerMap/drawUtil',
            meta: { needOpen: 'home_map', activeName: 'home_map_layerMap' },
            component: () => import(/* webpackChunkName: 'home_map_layerMap_drawUtil' */ 'components/map/layerMapChild/drawUtil')
          }
        ]
      }
    ]
  }
]

export default routes
